package com.heima.wemedia.controller;

import com.heima.common.dtos.ArticleCommentPageDto;
import com.heima.common.dtos.PageResult;
import com.heima.wemedia.service.WmCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WmCommentController {
    @Autowired
    private WmCommentService commentService;

    /**
     * 查询评论详情
     *
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/comment/manage/find_news_comments")
    public PageResult findByPage(@RequestBody ArticleCommentPageDto dto) {
        return commentService.findByPage(dto);

    }
}
